package com.lagou.client;

import com.lagou.service.UserService;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;

/**
 * @author Mrwg
 * @date 2020/5/23
 * @description rpc 客户端
 */
@SpringBootApplication
public class ClientBootstrap {
    /*    public static final String providerName = "UserService#sayHello#";

        public static void main(String[] args) throws InterruptedException {
            RpcConsumer consumer = new RpcConsumer();
            UserService service = (UserService) consumer.createProxy(UserService.class, providerName);
            for (;;) {
                Thread.sleep(2000);
                System.out.println(service.sayHello("are you ok ?"));
            }
        }*/
    public static void main(String[] args) {
        SpringApplication.run(ClientBootstrap.class);
    }
}
